import { baseUrl } from '@/libs/api.request'
export const getImgUrl = (url)=>{
	// if( !url ) return noImg;
	return baseUrl+'/file/get/'+ url;
    /*var imgObj = new Image();
    imgObj.src= baseUrl + '/file/get/'+ url;
	if(imgObj.fileSize > 0 || (imgObj.width > 0 && imgObj.height > 0)) {
		return baseUrl+'/file/get/'+ url;
	} else {
		return noImg;
	}*/
}
export const getUploadUrl = (type)=>{
	return baseUrl+'/file/upload/'+ type;
}

/*export const uploadImgs = (imgName) => {
    return baseUrl+'/file/upload/moduleIcon'+imgName;
}
*/